//
//  XXmessages.h
//  QQ聊天
//
//  Created by 宋 on 16/3/11.
//  Copyright © 2016年 宋. All rights reserved.
//

#import <Foundation/Foundation.h>
//消息发送者
typedef enum{
    XXmessagesTypeMe = 0,
    XXmessagesTypeOther = 1
}XXmessagesType;

@interface XXmessages : NSObject
//正文消息
@property(nonatomic,copy)NSString *text;
//消息发送时间
@property(nonatomic,copy)NSString *time;

@property(nonatomic,assign)XXmessagesType type;

//实例方法
-(instancetype)initWithDcit:(NSDictionary *)dict;

//类方法
+(instancetype)messagesWithDcit:(NSDictionary *)dict;

@end
